fix: convert UUID fields to strings in _extract_feedback_dict_from_step_row#2793
Merged
hayescode merged 1 commit intoChainlit:mainfrom Feb 24, 2026
Merged
Conversation
…ep_row asyncpg returns raw uuid.UUID objects from PostgreSQL. The sibling method _convert_step_row_to_dict already wraps UUID fields with str(), but _extract_feedback_dict_from_step_row was passing them through raw. This caused TypeError: Object of type UUID is not JSON serializable when resuming a thread via the sidebar. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
hayescode
approved these changes
Feb 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
asyncpgreturns rawuuid.UUIDobjects from PostgreSQL. The sibling method_convert_step_row_to_dictalready wraps UUID fields withstr(), but_extract_feedback_dict_from_step_rowwas passing them through raw. Thiscaused
TypeError: Object of type UUID is not JSON serializablewhenresuming a thread via the sidebar.
Changes
row["id"]androw["feedback_id"]withstr()in_extract_feedback_dict_from_step_rowto match the pattern used in_convert_step_row_to_dict.Test plan
threads with feedback in the PostgreSQL data layer.
Summary by cubic
Converted UUID fields to strings in _extract_feedback_dict_from_step_row to prevent JSON serialization errors when resuming threads from the sidebar. Wraps row['id'] and row['feedback_id'] with str() to match _convert_step_row_to_dict.
Written for commit 87091f5. Summary will update on new commits.